Skip to content

Add LVFace library #1685

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 7 commits into
base: main
Choose a base branch
from
Open

Conversation

GitHup2016yjh
Copy link

This PR adds LVFace, a new ViT-based face model, as a library. Thanks.

@@ -1703,6 +1703,24 @@ export const vfimamba = (model: ModelData): string[] => [
model = Model.from_pretrained("${model.id}")`,
];

export const lvface = (model: ModelData): string[] => [
`## Initialize the inferencer from inference_onnx.py
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

can you please add imports 🥹 feel free to remove comments to make it more minimal

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

yes^ - let's make the snippets complete and minimal.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Excuse me, would it be necessary for me to delete some of the comments to reduce the number of lines taken by them?

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think in general we keep them minimal, so lesser the better

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think in general we keep them minimal, so lesser the better

Thank you for the reminder. I have already compressed it to just one line.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Apologies for the confusion here @GitHup2016yjh - what we meant by minimal snippet was to have something that enables people to test your model in say a Google Colab without looking at your GitHub repo or documentation for more details.

You can see couple of examples of this in the rest of the snippets in the same file.

An ideal snippet has three main parts:

  1. Setting up environment in the commments (# pip instal x y z)
  2. Load the model weights from hugging face (inferencer in your case)
  3. Run inference on a sample input

Let me know if this is not clear - happy to elaborate more.

Thanks again for your contribution!

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Apologies for the confusion here @GitHup2016yjh - what we meant by minimal snippet was to have something that enables people to test your model in say a Google Colab without looking at your GitHub repo or documentation for more details.

You can see couple of examples of this in the rest of the snippets in the same file.

An ideal snippet has three main parts:

  1. Setting up environment in the commments (# pip instal x y z)
  2. Load the model weights from hugging face (inferencer in your case)
  3. Run inference on a sample input

Let me know if this is not clear - happy to elaborate more.

Thanks again for your contribution!

Thank you for the reminder. I have revised this part of the content. Is it correct now?

@merveenoyan
Copy link
Contributor

would be great if files could be linted! 🙏🏻💗

Copy link
Member

@Vaibhavs10 Vaibhavs10 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for the PR! please see my comments.

More generally we recommend have one model checkpoint/ type per repo (the hub is optimised to work like that).

In your case LVFace has 4 different types/ flavours of weights which makes download tracking a bit difficult.

We recommend splitting them if possible. If not, then do make a note for next release!

@GitHup2016yjh
Copy link
Author

GitHup2016yjh commented Aug 14, 2025

Thanks for the PR! please see my comments.

More generally we recommend have one model checkpoint/ type per repo (the hub is optimised to work like that).

In your case LVFace has 4 different types/ flavours of weights which makes download tracking a bit difficult.

We recommend splitting them if possible. If not, then do make a note for next release!

There are quite a few of these models, and they are relatively fragmented, so I'm thinking of releasing them together.
Could you please tell me how I should make a note for the next release?​

Copy link
Member

@Vaibhavs10 Vaibhavs10 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There are quite a few of these models, and they are relatively fragmented, so I'm thinking of releasing them together.

Okay - fair enough.

Could you please tell me how I should make a note for the next release?​

Ah, I just meant if/ when you release other family of models please make sure to split them in different repos (so more a note for yourself to keep in mind)

@GitHup2016yjh
Copy link
Author

There are quite a few of these models, and they are relatively fragmented, so I'm thinking of releasing them together.

Okay - fair enough.

Could you please tell me how I should make a note for the next release?​

Ah, I just meant if/ when you release other family of models please make sure to split them in different repos (so more a note for yourself to keep in mind)

Alright, thank you for the reminder.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants